package com.mgs.fwk.test
{
	import flexunit.framework.Assert;

	public class AssertUtil
	{
		/**
		 * @return true is A is included in B, false otherwise.
		 */
		public static function assertIncludes(vectorA:*, vectorB:*):Boolean
		{
			var includes:Boolean = false;
			for each(var objectA:Object in vectorA)
			{
				if(vectorB.indexOf(objectA) < 0){
					includes = false;
					break;
				}
			}
			return includes;
		}
		
		public static function assertEquals(vectorA:*, vectorB:*):Boolean
		{
			return vectorA.length == vectorB.length && 
				assertIncludes(vectorA, vectorB) && 
				assertIncludes(vectorB, vectorA);
		}
	}
}